package com.example.bigevent.mapper;

import com.example.bigevent.pojo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("select * from user where username = #{username}")
    User selectByUsername(String username);
    @Insert("insert into user (username,password,create_time,update_time)values (" +
            "#{username},#{password},now(),now()" +
            ")")
    void inset(String username, String password);
}
